import request from '@/api/axios';
import { ResultData, Result } from '@/api/types';
import { SearchRes, HotItem } from '@/components/search-box/types'
import type { SheetDetail, SongUrlDetail } from '@/components/SongSheet/types'
export type { ToneLevel } from '@/enum/index'
export const getSongApi = (params: { id: string, level: ToneLevel }) => request<ResultData<SongUrlDetail[]>>({
    url: `/song/url/v1`,
    params
})
export const getSheetDetailApi = (params: { id: string, s?: number }) => request<SheetDetail>({
    url: `/playlist/detail`,
    params
})
